import xyRequest from '..'

// 获取用户登录后的token等基本信息
export function userLoginRequest(account: any) {
  return xyRequest.post({
    url: '/user/user/login',
    headers: { 'content-type': 'application/json' },
    data: account
  })
}
//用户登录
export function userLogin(account: any) {
  return xyRequest.post({
    url: '/user/user/login',
    headers: { 'content-type': 'application/json' },
    data: JSON.stringify(account)
  })
}

//用户注册
export function useRegister(account: any) {
  return xyRequest.post({
    url: '/user/user/add',
    headers: { 'content-type': 'application/json' },
    data: JSON.stringify(account)
  })
}
